<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>字体图标</title>
    <link rel="stylesheet" href="css/font.css">
    <style>
        span {
            /* 字体需要一致 */
            font-family: 'icomoon';
            font-size: 20px;
            color: tomato;
        }
        .box img {
            vertical-align: bottom;
        }
        .shenglue1 {
            width: 150px;
            background-color: blueviolet;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .shenglue2 {
            width: 150px;
            height: 100px;
            background-color: blueviolet;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
    </style>
</head>
<body>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <div class="box">
        <img src="images/png/8.png" alt="">abcdefghijklmn
    </div>
    <div class="shenglue1">
        啥也不说, 此处省略一万字
    </div>
    <div class="shenglue2">
        啥也不说, 此处省略一万字啊啊啊啊啊啊啊啊啊
    </div>
</body>
</html>